#ifndef __GroupH__
#define __GroupH__

#include <vector>
#include "Triangle.h"

class Group
{
public:
	Group();
	virtual ~Group();
	size_t getNumofTriangles() { return m_vpTriangles.size();}
	void addTriangle(Triangle *pTriangle);
	virtual bool intersect(const Ray *pRay, Hit *pHit, float tmin, float tmax);
	virtual bool intersectShadowRay(const Ray *pRay, float tmin, float tmax);
	virtual void debugMessage();
protected:
	std::vector<Triangle *> m_vpTriangles;
};
#endif